package com.ruoyi.points.pointsAccess.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.points.pointsAccess.mapper.PointsAccessMapper;
import com.ruoyi.points.pointsAccess.domain.PointsAccess;
import com.ruoyi.points.pointsAccess.service.IPointsAccessService;

/**
 * 获取方式分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-07
 */
@Service
public class PointsAccessServiceImpl implements IPointsAccessService 
{
    @Autowired
    private PointsAccessMapper pointsAccessMapper;

    /**
     * 查询获取方式分类
     * 
     * @param id 获取方式分类主键
     * @return 获取方式分类
     */
    @Override
    public PointsAccess selectPointsAccessById(Long id)
    {
        return pointsAccessMapper.selectPointsAccessById(id);
    }

    /**
     * 查询获取方式分类列表
     * 
     * @param pointsAccess 获取方式分类
     * @return 获取方式分类
     */
    @Override
    public List<PointsAccess> selectPointsAccessList(PointsAccess pointsAccess)
    {
        return pointsAccessMapper.selectPointsAccessList(pointsAccess);
    }

    /**
     * 新增获取方式分类
     * 
     * @param pointsAccess 获取方式分类
     * @return 结果
     */
    @Override
    public int insertPointsAccess(PointsAccess pointsAccess)
    {
        return pointsAccessMapper.insertPointsAccess(pointsAccess);
    }

    /**
     * 修改获取方式分类
     * 
     * @param pointsAccess 获取方式分类
     * @return 结果
     */
    @Override
    public int updatePointsAccess(PointsAccess pointsAccess)
    {
        return pointsAccessMapper.updatePointsAccess(pointsAccess);
    }

    /**
     * 批量删除获取方式分类
     * 
     * @param ids 需要删除的获取方式分类主键
     * @return 结果
     */
    @Override
    public int deletePointsAccessByIds(Long[] ids)
    {
        return pointsAccessMapper.deletePointsAccessByIds(ids);
    }

    /**
     * 删除获取方式分类信息
     * 
     * @param id 获取方式分类主键
     * @return 结果
     */
    @Override
    public int deletePointsAccessById(Long id)
    {
        return pointsAccessMapper.deletePointsAccessById(id);
    }
}
